package com.coderman.common.lightmonitor.mapper;

import com.coderman.common.lightmonitor.entity.ServerCpuloadEntity;

/**
 * @Description:DAO接口
 * @Author：
 * @CreateTime：2019-09-10 11:14:28
 * @version v1.0
 */
public interface ServerCpuloadMapper {


    /**
	 *
	 * @Title: save
     * @Description:新增或修改
     * @author: 
     * @param @param dto
     * @param @param userId
     * @return 当前插入记录id
     * @throws
     */
     Long insert(ServerCpuloadEntity Entity) throws Exception;

     /**
      *
      * @Title: delete
      * @Description: 通过id删除数据
      * @author: 
      * @param @param id
      * @return 0/1    返回类型
      * @throws
      */
     int delete(long id)  throws Exception;

     /**
      *
      * @Title: getById
      * @Description: 通过id查询
      * @author: 
      * @param @param id
      * @return ServerCpuloadEntity   返回类型
      * @throws
      */
     ServerCpuloadEntity getById(Long id) throws Exception;


      /**
       *
       * @Title: getById
       * @Description: 通过id查询
       * @author: 
       * @param @param id
       * @return 0/1
       * @throws
       */
     // int  update(ServerCpuloadEntity entity) throws Exception;



}